/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ericsson.nfc.signing.algorithm;

import org.bouncycastle.asn1.DEREncodable;
import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo;

/**
 *
 * @author emarkki
 */
public class PublicKey {

    private SubjectPublicKeyInfo subjectPublicKeyInfo;
    private DEREncodable externalParameters;
    
    public PublicKey(SubjectPublicKeyInfo subjectPublicKeyInfo) {
        this(subjectPublicKeyInfo, null);
    }

    public PublicKey(SubjectPublicKeyInfo subjectPublicKeyInfo, DEREncodable additionalParameters) {
        this.subjectPublicKeyInfo = subjectPublicKeyInfo;
        this.externalParameters = additionalParameters;
    }
    
    public SubjectPublicKeyInfo getSubjectPublicKeyInfo() {
        return subjectPublicKeyInfo;
    }

    public DEREncodable getExternalParameters() {
        return externalParameters;
    }

}
